package com.wyt.service;


import com.spring.*;

@Component("userService")
@Scope(BeanDefinition.ff.prototype)
public class UserServiceImpl implements BeanNameAware,InitializingBean,UserService{

    @Autowired
    private OrderService orderService;

    private String beanName;

    private String aopName;
    public void setAopName(String name){
        this.aopName = name;
        System.out.println(name);
    }

    public void test(){
        System.out.println(orderService);
    }

    @Override
    public void setBeanName(String name) {
        beanName = name;
        System.out.println(beanName);
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        //验证啊 xxx之类的 初始化机制
        System.out.println("初始化");
    }
}
